<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
	
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	
	<?php if (is_search()) { ?>
	   <meta name="robots" content="noindex, nofollow" /> 
	<?php } ?>

	<title>
		   <?php
		      if (function_exists('is_tag') && is_tag()) {
		         single_tag_title("Tag Archive for &quot;"); echo '&quot; - '; }
		      elseif (is_archive()) {
		         wp_title(''); echo ' Archive - '; }
		      elseif (is_search()) {
		         echo 'Search for &quot;'.wp_specialchars($s).'&quot; - '; }
		      elseif (!(is_404()) && (is_single()) || (is_page())) {
		         wp_title(''); echo ' - '; }
		      elseif (is_404()) {
		         echo 'Not Found - '; }
		      if (is_home()) {
		         bloginfo('name'); echo ' - '; bloginfo('description'); }
		      else {
		          bloginfo('name'); }
		      if ($paged>1) {
		         echo ' - page '. $paged; }
		   ?>
	</title>
	
	<link rel="shortcut icon" href="<?php bloginfo('template_url') ?>/images/favicon.ico" type="image/x-icon" />
	
	<?php wp_head(); ?>
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
	
  <script src="<?php bloginfo('template_url') ?>/js/jquery.js" type="text/javascript"></script>
  <script src="<?php bloginfo('template_url') ?>/js/jquery.easing.1.3.js" type="text/javascript"></script>
  <script src="<?php bloginfo('template_url') ?>/js/jquery.bxSlider.min.js" type="text/javascript"></script>
  <script src="<?php bloginfo('template_url'); ?>/js/jquery.imagesloaded.js" type="text/javascript"></script>
  <script src="<?php bloginfo('template_url'); ?>/js/jquery.isotope.min.js" type="text/javascript"></script>
  
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

	<script>
    $(document).ready(function(){
      $('.sidebar .menu-main-menu-container .current-menu-item, .sidebar .menu-main-menu-container .current-menu-parent, .sidebar #menu-main-menu li.current-post-ancestor').prepend('<div class="add-bar"></div>');
      $('#menu-main-menu').append('<li />');
      $('#menu-main-menu').append('<li />');
    });
  </script>
  
</head>

<body <?php body_class(); ?>>
<div class="wrapper">
	<div class="sidebar">
    <img class="logo" src="<?php bloginfo('template_url') ?>/images/logo.png" />
    
    <?php wp_nav_menu(); ?>
    
    <div class="promo box">
      <div class="box-header vshadow">
        <i class="icon-white fl"></i>
        <i class="icon-white fr"></i>
        <div class="clear"></div>
      </div>
      <div class="box-content">
        <?php
          $id = 22;
          $promo = get_post($id);
        ?>
        <h1><?php echo $promo->post_title; ?></h1>
        <?php echo wpautop($promo->post_content); ?>
      </div>
    </div>
  </div>

  <div class="content">
    <div class="header">
      <div class="search fr">
        <?php get_search_form(); ?>
      </div>
      <div class="clear"></div>
    </div>